import sys

try:
    import xbmc, xbmcplugin
except:
    import xbmc_dummy as xbmcplugin
    import xbmc_dummy as xbmc
    handle = int( sys.argv[1] )
else:
    handle = 1
    

total_items = 0



def add(title, url, thumbnail='', is_folder=False, listitem=None):
    if not listitem:
        listitem = xbmc.ListItem(title)


